home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / snowballs.swf / scripts / DefineSprite_78 / frame_4 / DoAction.as
Text File  |  2012-01-07  |  622b  |  33 lines

  1. y = _Y;
  2. x = _X;
  3. boxx = getProperty("/hands", _X);
  4. boxy = getProperty("/hands", _Y);
  5. if(boxx - "35" < x)
  6. {
  7.    if(x < boxx + "35")
  8.    {
  9.       if(boxy - "30" < y)
  10.       {
  11.          if(y < boxy + "10")
  12.          {
  13.             tellTarget("/hands/box")
  14.             {
  15.                gotoAndPlay(2);
  16.             }
  17.             set("/:score",eval("/:score") + "1");
  18.             tellTarget("/hands/box/fill")
  19.             {
  20.                gotoAndStop(eval("/:score"));
  21.             }
  22.             gotoAndPlay(1);
  23.          }
  24.       }
  25.    }
  26. }
  27. if("430" < y)
  28. {
  29.    gotoAndPlay(6);
  30. }
  31. y += eval("/:speed");
  32. _Y = y;
  33.